projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ec8d2c
)
(functionp): Catch errors in indirect-function.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 12 May 2002 16:41:11 +0000
(16:41 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 12 May 2002 16:41:11 +0000
(16:41 +0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index e7fbe0f6a7b664f005d8bd45a3106c3650350de5..2636ccadea97ccffdca717aa3c2d0f603024ab5a 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-1804,7
+1804,9
@@
configuration."
(defun functionp (object)
"Non-nil iff OBJECT is a type of object that can be called as a function."
(or (and (symbolp object) (fboundp object)
- (setq object (indirect-function object))
+ (condition-case nil
+ (setq object (indirect-function object))
+ (error nil))
(eq (car-safe object) 'autoload)
(not (car-safe (cdr-safe (cdr-safe (cdr-safe (cdr-safe object)))))))
(subrp object) (byte-code-function-p object)